/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package formula;

import formula.node.Node;
import java.util.ArrayList;
import java.util.Hashtable;

/**
 *
 * @author CJ
 */
public class FormulaProblemParams {

    public double minValue;
    public double maxValue;

    public int maxDepth;

    public double ERROR;

    public Node rootNodeIdeal;

    public int maxFitness;

    protected double diff;

    public Hashtable<String, Double> constantsStorage;
    public ArrayList<String> varableNames;

    public FormulaProblemParams(){
        this.constantsStorage = new Hashtable<String, Double>();
        this.varableNames = new ArrayList<String>();
        this.maxDepth = 50;
        this.diff = -1;
        this.maxFitness = -1;
    }

    public void pack(){
        this.diff = this.maxValue - this.minValue + 1;
        this.ERROR = this.minValue - 1;
    }

    public double getDiff(){
        return this.diff;
    }
    

}
